from django.contrib import admin
from mod_base import models


class CategoryAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'description')
    readonly_fields = ('id',)
    fieldsets = (
        (None, {
            'fields': ('id', 'name', 'description'),
        }),
    )

    ordering = ('id',)

admin.site.register(models.Category, CategoryAdmin)